from dataclasses import dataclass


@dataclass
class Task:
    id: int = 0
    title: str = ''
    url: str = ''
    format: str = ''
    status: int = 0
    percent: float = 0.0
    path: str = ''
    is_downloading: int = 0
    is_stop: int = 0
